Document directory
1. Prepare the environment
2. Set the virtual environment and install tg21
1. Prepare the environment
In centos 5.x Linux, Python 2.4 has been installed by default. Therefore, we will install turbogears 2.1 on this basis.
At the time of writing this article, the latest tg21 version is RC1. We will install it on this basis.
Install easy_install first. We recommend that you use the latest version above pypi.python.org. Do not u
Tg2b6 seems to have changed its publishing philosophy. Some packages are separated and need independent easy_install. It took me several hours.
The document (http://turbogears.org/2.0/docs/main/DownloadInstall.html) seems to have not updated to be
(RQLRelation Query Language) to communicate with databases.
Zope2
Zope 2 is a Python-based Web application framework. it is the first of all Python Web applications and tools and is a powerful branch of the Python family. The "object publishing" system of Zope 2 is very suitable for object-oriented development methods. it can reduce developers' learning curves and help you find some bad functions in applications.
Web2py
Web2py is a free open-source Web framework written in Python. it is desi
Python family. The "Object Publishing" system for Zope 2 is ideal for object-oriented development and can ease the learning curve of developers and help you find some bad features in your application.
Web2py
Web2py is a free open source web framework written in Python, designed to quickly and rapidly develop Web applications, with fast, scalable, secure, and portable database-driven applications that follow the LGPLv3 Open source protocol.
WEB2PY provides a one-stop solution, the entire de
the Python family. The Zope 2 "Object Publishing" system is ideal for object-oriented development methods and can alleviate the developer's learning curve and help you discover some of the bad features in your application.
Web2py
Web2py is a free open source web framework written in Python that is designed to be agile and fast to develop Web applications with fast, scalable, secure, and portable database-driven applications that follow the LGPLv3 Open source protocol.
WEB2PY provides a one-sto
framework. It is the first of all Python Web applications and tools and is a powerful branch of the Python family. The "Object publishing" system of Zope 2 is very suitable for object-oriented development methods. It can reduce developers' learning curves and help you find some bad functions in applications.
Web2py
Web2py is a free open-source Web framework written in Python. It is designed to develop Web applications quickly and quickly, with fast, scalable, secure, and portable database-driv
framework. It is the first of all Python Web applications and tools and is a powerful branch of the Python family. The "Object publishing" system of Zope 2 is very suitable for object-oriented development methods. It can reduce developers' learning curves and help you find some bad functions in applications.Web2py
Web2py is a free open-source Web framework written in Python. It is designed to develop Web applications quickly and quickly, with fast, scalable, secure, and portable database-drive
Other gains from sd2c come from web applications. One is Dong Jing's Gae lecture, and the other is Qian Hongwu's lecture on large-scale Web applications.
Qian Hongwu has a point of view that he must choose the type of technology that has been tested and has rich resources.Solution. For example, for Web applications, PHP is such a reliable solution. I agree with this. asp is a technology that has failed to pass the test and has been phased out in the past few years.How is Ms? The reality is cruel
of user. Some programmers find that web.py lacks certain features.6. Grok:Grok is based on Zope Toolkit. The framework emerged as an extension of Zope to make it easier for programmers to use. Grok can offer multiple building blocks and excellent community. Grok follows DRY approach.7. Pylons:Pylons offers great flexibility to developers. The framework is based on a idea to combine some of the best feature offered by numerous Python frameworks. You'll find all important features of different fr
framework. It is the first of all Python Web applications and tools and is a powerful branch of the Python family. The "Object publishing" system of Zope 2 is very suitable for object-oriented development methods. It can reduce developers' learning curves and help you find some bad functions in applications.Web2py
Web2py is a free open-source Web framework written in Python. It is designed to develop Web applications quickly and quickly, with fast, scalable, secure, and portable database-drive
Http://turbogears.readthedocs.io/en/latest/cookbook/master-slave.htmlSQLAlchemy Master Slave Load balancingSince version 2.2 TurboGears have basic support for Master/slave load Balancingand provides a set of utilities to use I T.TurboGears permits to declare a master server and any number of the slave servers, all thewrites would automatically redirected To the master node and the other calls Willbe dispatched randomly to the slave nodes.All the queri
of 1989, Guido van Rossum to spend time in Amsterdam, determined to develop a new script interpreter, as an inheritance of the ABC language. Python was chosen as the name of the program because he was a fan of the BBC TV show-Monty Python's Flying Circus (Monty Python's Flying Circus).
3. What Python can do
Web ProgramPython is often used for web development. For example, with the Mod_wsgi module, Apache can run web programs written in Python. Gunicorn, written in the
poison and poisonous.
pylons TurboGears REPOZE.BFG
In addition to Django, another big head is pylons, because turbogears2.x is based on pylons, and REPOZE.BFG has been incorporated into pylons project, TurboGears and REPOZE.BFG are no longer discussed separately.
The design philosophy of pylons and Django is completely different, the pylons itself has only about 2000 lines of Python code, but it also co
template.
For example, the ASP. NET template can be written in:
int i;
for (i==0;i
....
}
%>
Django is completely unsupported by embedding code similar to the above, only can use its template built-in functions, which in fact is a "new language" for its template, and because this "new language" is very simple, it is also able to migrate its templates to different platforms.
In most cases, Django's template functionality is sufficient, but for special (sometimes "special" and not very specia
have a ready-made template) 4. static Page (user experience, speed) 5. ajax)
Optional framework:
Java+Apache+Hibernate+MySQL
Python web framework disadvantage 1:
1. overall configuration and architecture enterprise development are required) 2. UI design, Ajax support, Web Page Style 3. A unified configuration is required, and the independence of function modules is poor. When the function increase or the correlation degree increases, the development staff is under great pressure. 4. lar
templates is the biggest controversy among Django templates.
Pylons TurboGears repoze. bfg
In addition to Django, the other big data is Pylons, because TurboGears2.x is based on Pylons, and repoze. bfg has also been incorporated into this big project in the Pylons project. we will not discuss TurboGears and repoze separately later. bfg.
Pylons and Django have different design concepts. Pylons only ha
embodiment of best practice.Overall. Django embracing. It is very good to use it to develop some Web applications at high speed.Assuming you follow Django's design philosophy, you'll think Django is very useful. Instead of assuming that you can't incorporate or accept Django's design philosophy, you'll be very miserable with Django and give up well. So in some people's eyes, Django is a panacea, but for some people it is poison and poisonous.Pylons TurboGe
Python family. The Zope 2 "Object Publishing" system is ideal for object-oriented development methods and can alleviate the developer's learning curve and help you discover some of the bad features in your application.Web2pyWeb2py is a free open source web framework written in Python that is designed to be agile and fast to develop Web applications with fast, scalable, secure, and portable database-driven applications that follow the LGPLv3 Open source protocol.WEB2PY provides a one-stop soluti
INI, XML or Yaml form. This is not a problem in itself, but because in theory the value of settings can be changed dynamically (although people do not), this is not the embodiment of best practice.In general, Django embracing, using it to quickly develop some Web applications is very good. If you follow Django's philosophy of design, you will feel that Django is good to use and more handy, but if you can't incorporate or accept Django's design philosophy, you'll be miserable with Django and giv
Python family. The Zope 2 "Object Publishing" system is ideal for object-oriented development methods and can alleviate the developer's learning curve and help you discover some of the bad features in your application.Web2pyWeb2py is a free open source web framework written in Python that is designed to be agile and fast to develop Web applications with fast, scalable, secure, and portable database-driven applications that follow the LGPLv3 Open source protocol.WEB2PY provides a one-stop soluti
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.